// Compare this snippet from src/OAAdmin.cpp:
// #include "OAAdmin.h"
#include "OADataCebter.h"
#include <iostream>
#include <string>

using namespace std;

OAAdmin::OAAdmin() {
  _username = "";
  _password = "";
}

OAAdmin::OAAdmin(string username, string password) {
  _username = username;
  _password = password;
}

OAAdmin OAAdmin::ERROR_ADMIN = OAAdmin();

string OAAdmin::username() { return _username; }

bool OAAdmin::addUser(string username, string password, string department) {
  return OADataCebter::getInstance().addUser(username, password, department);
}

bool OAAdmin::delUser(string username) {
  return OADataCebter::getInstance().delUser(username);
}

bool OAAdmin::addMeetingRoom(int mid, int capacity, string roomname) {
  return OADataCebter::getInstance().addMeetingRoom(mid, capacity, roomname);
}

bool OAAdmin::delMeetingRoom(int mid) {
  return OADataCebter::getInstance().delMeetingRoom(mid);
}